Kanzi 3.9.10
kanzi::KeyframeAnimation< TValueType >::LinearKeyframe Class Reference

Use linear keyframes to interpolate animated property value linearly between keyframes. More...

#include <kanzi/core.ui/animation/keyframe_animation.hpp>

Inheritance diagram for kanzi::KeyframeAnimation< TValueType >::LinearKeyframe:
[legend]

Public Member Functions

TValueType getValue (const TValueType &currentValue, float normalizedTime) override
 Returns the value for the animated property at a given time.
 
 LinearKeyframe ()
 Constructor.
 
 LinearKeyframe (TValueType value)
 Constructor.
 
- Public Member Functions inherited from kanzi::KeyframeAnimation< TValueType >::Keyframe
TValueType getKeyValue () const
 Returns the keyframe value of the animated property.
 
 Keyframe ()
 Constructor.
 
 Keyframe (TValueType value)
 Constructor.
 
void setKeyValue (const TValueType &keyValue)
 Sets the keyframe value for a keyframe.
 
virtual ~Keyframe ()
 

Static Public Member Functions

static LinearKeyframePtr create (float value)
 Creates linear keyframe.
 

Detailed Description

template<typename TValueType>
class kanzi::KeyframeAnimation< TValueType >::LinearKeyframe

Use linear keyframes to interpolate animated property value linearly between keyframes.

Constructor & Destructor Documentation

◆ LinearKeyframe() [1/2]

template<typename TValueType >
kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::LinearKeyframe ( )
inlineexplicit

Constructor.

◆ LinearKeyframe() [2/2]

template<typename TValueType >
kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::LinearKeyframe ( TValueType value)
inlineexplicit

Constructor.

Member Function Documentation

◆ create()

template<typename TValueType >
static LinearKeyframePtr kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::create ( float value)
inlinestatic

Creates linear keyframe.

Parameters
valueThe keyframe value of the animated property.

◆ getValue()

template<typename TValueType >
TValueType kanzi::KeyframeAnimation< TValueType >::LinearKeyframe::getValue ( const TValueType & currentValue,
float normalizedTime )
inlineoverridevirtual

Returns the value for the animated property at a given time.

Parameters
currentValueThe current value of the animated property.
normalizedTimeThe time at which you want to get the value of the animated property. 0.0 corresponds to the time of the previous keyframe. 1.0 corresponds to the time of this keyframe.
Returns
The value of the animated property at a given time.

Implements kanzi::KeyframeAnimation< TValueType >::Keyframe.


The documentation for this class was generated from the following file: